package com.guoxin.designpattern.chapter1;

/**
 * 单例设计模式，饿汉式，线程安全
 * 
 * @author guoxin
 * @date 2019年8月26日
 */
public class SingletonObject1 {
	/**
	 * can't lazy load.
	 */
	private static final SingletonObject1 INSTANCE = new SingletonObject1();

	private SingletonObject1() {
		// empty
	}

	public static SingletonObject1 getInstance() {
		return INSTANCE;
	}
}
